package com.rz.htk.print.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rz.htk.print.entity.PrintTempField;
import com.rz.htk.print.mapper.PrintTempFieldMapper;
import com.rz.htk.print.service.IPrintTempFieldService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PrintTempFieldServiceImpl extends ServiceImpl<PrintTempFieldMapper, PrintTempField> implements IPrintTempFieldService {

    @Override
    public List<PrintTempField> getFields(Integer printTempId) {
        QueryWrapper<PrintTempField> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("print_temp_id",printTempId);
        return list(queryWrapper);
    }

    @Override
    public List<PrintTempField> getFields(List<Integer> printTempIds) {
        QueryWrapper<PrintTempField> queryWrapper = new QueryWrapper<>();
        queryWrapper.in("print_temp_id",printTempIds);
        return list(queryWrapper);
    }
}
